.class public Les/by;
.super Les/zx;
.source "StorageDeviceBlockItem.java"


# instance fields
.field private c:Landroid/widget/TextView;

.field private d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:J

.field private k:J

.field private l:Landroid/view/View$OnClickListener;

.field private m:Z

.field private n:Z

.field private o:Z


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/zx;-><init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Les/by;->m:Z

    .line 3
    iput-boolean p1, p0, Les/by;->n:Z

    .line 4
    iput-boolean p1, p0, Les/by;->o:Z

    return-void
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    .line 7
    iget-object v0, p0, Les/by;->h:Ljava/lang/String;

    return-object v0
.end method

.method public a(I)V
    .locals 1

    .line 8
    iget-object v0, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    if-eqz v0, :cond_0

    .line 9
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->setProgressColor(I)V

    :cond_0
    return-void
.end method

.method public a(JJ)V
    .locals 1

    .line 2
    iput-wide p1, p0, Les/by;->j:J

    .line 3
    iput-wide p3, p0, Les/by;->k:J

    .line 4
    iget-object v0, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    if-eqz v0, :cond_0

    .line 5
    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(JJ)V

    :cond_0
    return-void
.end method

.method public a(Landroid/view/View$OnClickListener;)V
    .locals 0

    .line 6
    iput-object p1, p0, Les/by;->l:Landroid/view/View$OnClickListener;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/by;->i:Ljava/lang/String;

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 10
    iput-boolean p1, p0, Les/by;->m:Z

    .line 11
    iget-object v0, p0, Les/zx;->b:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    :cond_0
    return-void
.end method

.method public b(JJ)V
    .locals 4

    .line 4
    iput-wide p1, p0, Les/by;->j:J

    .line 5
    iput-wide p3, p0, Les/by;->k:J

    .line 6
    iget-object v0, p0, Les/by;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_4

    iget-object v0, p0, Les/by;->f:Landroid/widget/TextView;

    if-eqz v0, :cond_4

    .line 7
    iget-object v0, p0, Les/by;->h:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->t2(Ljava/lang/String;)Z

    move-result v0

    const-wide/16 v1, 0x0

    if-eqz v0, :cond_0

    cmp-long v0, p3, v1

    if-gtz v0, :cond_0

    .line 8
    iget-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    const-string p2, ""

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    iget-object p1, p0, Les/by;->g:Landroid/widget/TextView;

    const/4 p2, 0x4

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    .line 11
    :cond_0
    iget-object v0, p0, Les/by;->g:Landroid/widget/TextView;

    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    cmp-long v0, p1, v1

    if-ltz v0, :cond_3

    cmp-long v0, p3, v1

    if-gez v0, :cond_1

    goto :goto_0

    :cond_1
    const-wide/32 v0, 0x7fffffff

    cmp-long v2, p3, v0

    if-lez v2, :cond_2

    .line 12
    iget-object v0, p0, Les/by;->e:Landroid/widget/TextView;

    invoke-static {p1, p2}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 13
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    invoke-static {p3, p4}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 14
    :cond_2
    iget-object v0, p0, Les/by;->e:Landroid/widget/TextView;

    invoke-static {p1, p2}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 15
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    invoke-static {p3, p4}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 16
    :cond_3
    :goto_0
    iget-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    const-string p2, "0"

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 17
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_4
    :goto_1
    return-void
.end method

.method protected b(Landroid/view/View;)V
    .locals 8

    .line 18
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const v0, 0x7f090824

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Les/by;->c:Landroid/widget/TextView;

    .line 19
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060330

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 20
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const v0, 0x7f09050e

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    iput-object p1, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    .line 21
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object p1

    .line 22
    iget-object v0, p0, Les/by;->h:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    const v0, 0x7f060327

    if-eqz p1, :cond_1

    .line 23
    invoke-static {}, Lcom/estrongs/android/ui/homepage/j;->d()Z

    move-result p1

    if-eqz p1, :cond_0

    const v0, 0x7f060103

    .line 24
    :cond_0
    iget-object p1, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->setProgressColor(I)V

    goto :goto_0

    .line 25
    :cond_1
    iget-object p1, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    .line 26
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    .line 27
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->setProgressColor(I)V

    .line 28
    :goto_0
    iget-object p1, p0, Les/by;->h:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    iget-object p1, p0, Les/by;->h:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->w2(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 29
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f08044c

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 30
    :cond_2
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f080106

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 31
    :goto_1
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/view/View;->setFocusable(Z)V

    .line 32
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const v0, 0x7f090163

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    .line 33
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f06032f

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 34
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const v0, 0x7f090bea

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    .line 35
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 36
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    const v0, 0x7f090adb

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Les/by;->g:Landroid/widget/TextView;

    .line 37
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 38
    iget-object p1, p0, Les/by;->c:Landroid/widget/TextView;

    iget-object v0, p0, Les/by;->i:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 39
    iget-object p1, p0, Les/zx;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f080460

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 40
    iget-object v0, p0, Les/by;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v1, p1, v1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 41
    iget-wide v0, p0, Les/by;->j:J

    const-wide/16 v2, 0x0

    cmp-long p1, v0, v2

    if-ltz p1, :cond_5

    iget-wide v4, p0, Les/by;->k:J

    cmp-long p1, v4, v2

    if-gez p1, :cond_3

    goto :goto_2

    :cond_3
    const-wide/32 v6, 0x7fffffff

    cmp-long p1, v4, v6

    if-lez p1, :cond_4

    .line 42
    iget-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 43
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    iget-wide v0, p0, Les/by;->k:J

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 44
    :cond_4
    iget-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 45
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    iget-wide v0, p0, Les/by;->k:J

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 46
    :cond_5
    :goto_2
    iget-object p1, p0, Les/by;->e:Landroid/widget/TextView;

    const-string v0, "0"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 47
    iget-object p1, p0, Les/by;->f:Landroid/widget/TextView;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 48
    :goto_3
    iget-wide v0, p0, Les/by;->j:J

    cmp-long p1, v0, v2

    if-ltz p1, :cond_7

    iget-wide v4, p0, Les/by;->k:J

    cmp-long p1, v4, v2

    if-gez p1, :cond_6

    goto :goto_4

    .line 49
    :cond_6
    iget-object p1, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    invoke-virtual {p1, v0, v1, v4, v5}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(JJ)V

    goto :goto_5

    .line 50
    :cond_7
    :goto_4
    iget-object p1, p0, Les/by;->d:Lcom/estrongs/android/ui/view/HomeSdcardProgressView;

    const-wide/16 v0, 0x64

    invoke-virtual {p1, v2, v3, v0, v1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(JJ)V

    .line 51
    :goto_5
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    iget-object v0, p0, Les/by;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 52
    iget-object p1, p0, Les/zx;->b:Landroid/view/View;

    iget-boolean v0, p0, Les/by;->m:Z

    invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    .line 1
    iput-object p1, p0, Les/by;->i:Ljava/lang/String;

    .line 2
    iget-object v0, p0, Les/by;->c:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 53
    iput-boolean p1, p0, Les/by;->o:Z

    return-void
.end method

.method public b()Z
    .locals 1

    .line 54
    iget-boolean v0, p0, Les/by;->o:Z

    return v0
.end method

.method public c(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/by;->h:Ljava/lang/String;

    return-void
.end method

.method public c(Z)V
    .locals 0

    .line 3
    iput-boolean p1, p0, Les/by;->n:Z

    return-void
.end method

.method public c()Z
    .locals 1

    .line 2
    iget-boolean v0, p0, Les/by;->n:Z

    return v0
.end method
